import request from '../utils/request.js'

export function CreateArticle(data){
	return request({
		url:'/articles/insert',
		method:'post',
		data
	})
}

export function GetArticle(params){
	return request({
		url:'/articles/all',
		method:'get',
		params
	})
}

export function GetCurrentArticle(params){
	return request({
		url:'/articles/article',
		method:'get',
		params
	})
}

export function GetUserArticle(params){
	return request({
		url:'/articles/user',
		method:'get',
		params
	})
}

export function GetFavoriteArticle(params){
	return request({
		url:'/articles/user/favorite',
		method:'get',
		params
	})
}